package com.avecsys.quotemanager.pojos;

import java.sql.Blob;

public class QuoteTransactionEventsPojo extends BasePojo implements java.io.Serializable
{
	private Long eventId;

	private QuoteTransactionPojo quoteTransactionPojo = new QuoteTransactionPojo();

	private Double quoteValue;

	private String sellerComments;

	private String buyerComments;

	private Blob fileContent;

	private String fileName;

	private String contentType;

	private String transactionStatus;

	/**
	 * @return the buyerComments
	 */
	public String getBuyerComments()
	{
		return buyerComments;
	}

	/**
	 * @return the contentType
	 */
	public String getContentType()
	{
		return contentType;
	}

	/**
	 * @return the eventId
	 */
	public Long getEventId()
	{
		return eventId;
	}

	/**
	 * @return the fileContent
	 */
	public Blob getFileContent()
	{
		return fileContent;
	}

	/**
	 * @return the fileName
	 */
	public String getFileName()
	{
		return fileName;
	}

	@Override
	public String getPkColumnName()
	{
		return "eventId";
	}

	/**
	 * @return the quoteTransactionPojo
	 */
	public QuoteTransactionPojo getQuoteTransactionPojo()
	{
		return quoteTransactionPojo;
	}

	/**
	 * @return the quoteValue
	 */
	public Double getQuoteValue()
	{
		return quoteValue;
	}

	/**
	 * @return the sellerComments
	 */
	public String getSellerComments()
	{
		return sellerComments;
	}

	/**
	 * @return the transactionStatus
	 */
	public String getTransactionStatus()
	{
		return transactionStatus;
	}

	@Override
	public boolean isPersisted()
	{

		if (eventId == null || eventId.intValue() == 0)
		{
			return false;
		}
		else
		{
			return true;
		}
	}

	/**
	 * @param buyerComments the buyerComments to set
	 */
	public void setBuyerComments(String buyerComments)
	{
		this.buyerComments = buyerComments;
	}

	/**
	 * @param contentType the contentType to set
	 */
	public void setContentType(String contentType)
	{
		this.contentType = contentType;
	}

	/**
	 * @param eventId the eventId to set
	 */
	public void setEventId(Long eventId)
	{
		this.eventId = eventId;
	}

	/**
	 * @param fileContent the fileContent to set
	 */
	public void setFileContent(Blob fileContent)
	{
		this.fileContent = fileContent;
	}

	/**
	 * @param fileName the fileName to set
	 */
	public void setFileName(String fileName)
	{
		this.fileName = fileName;
	}

	/**
	 * @param quoteTransactionPojo the quoteTransactionPojo to set
	 */
	public void setQuoteTransactionPojo(QuoteTransactionPojo quoteTransactionPojo)
	{
		this.quoteTransactionPojo = quoteTransactionPojo;
	}

	/**
	 * @param quoteValue the quoteValue to set
	 */
	public void setQuoteValue(Double quoteValue)
	{
		this.quoteValue = quoteValue;
	}

	/**
	 * @param sellerComments the sellerComments to set
	 */
	public void setSellerComments(String sellerComments)
	{
		this.sellerComments = sellerComments;
	}

	/**
	 * @param transactionStatus the transactionStatus to set
	 */
	public void setTransactionStatus(String transactionStatus)
	{
		this.transactionStatus = transactionStatus;
	}

}
